package wk10p1;

class IntPair {
	private int x;
	private int y;
	public IntPair() {}
	public IntPair(int x_in, int y_in) {
		x = x_in;	y = y_in;
	}
	public int getX() {	return x;	}
	public int getY() {	return y;	}
	public String toString() {	return "[ " + x + ", " + y + " ]";	}
}

class DoublePair {
	private double x;
	private double y;
	public DoublePair() {}
	public DoublePair(double x_in, double y_in) {
		x = x_in;	y = y_in;
	}
	public double getX() {	return x;	}
	public double getY() {	return y;	}
	public String toString() {	return "[ " + x + ", " + y + " ]";	}
}

class StringPair {
	private String x;
	private String y;
	public StringPair() {}
	public StringPair(String x_in, String y_in) {
		x = x_in;	y = y_in;
	}
	public String getX() {	return x;	}
	public String getY() {	return y;	}
	public String toString() {	return "[ " + x + ", " + y + " ]";	}
}

// Set up a class for pairs of StringPair objects
// class StringPairPair

public class ClassPairsOfThings {
	public static void main(String[] args) {
		IntPair i = new IntPair(7, 23);
		System.out.println(" i: " + i);
		DoublePair d = new DoublePair(7.45, 0.23e-4 );
		System.out.println(" d: " + d);
		StringPair s = new StringPair("Hello", "CSIS 235" );
		System.out.println(" s: " + s);
		
	}
}
